import {
  API_VERSION,
  PAAS_URL
} from '@/common/config.js';
const publicApi = {
  postRecommentGoods: `/${API_VERSION}/5fd9a32379116`, //智能推荐
  numberOfShoppingCart: ``, //获取购物车数量
  publicUpdateAPP: `/${API_VERSION}/6423fb49bc82c`, // 静默更新
  queryAutograph: `/v1/6454d9663e508`, // 获取oss配置接口
  UPLOAD_IMAGE_URL: `/${API_VERSION}/5d5fa8984f0c2`, // 本地图片上传接口
  // UPLOAD_FILE_URL: `/${API_VERSION}/5d5fa8984f0c2`, // 文件上传接口
  GetVerifyCode: `/${API_VERSION}/5b5bdc44796e8`, // 发送验证码
  post62c7e3aba33c4: `/${API_VERSION}/62c7e3aba33c4`, //查询广告表
  post62cf6db8d4f5f: `/${API_VERSION}/62cf6db8d4f5f`, //获取指定导航位的导航菜单，导航位请从后台查看或者添加
  post62b9118254ebf: `/${API_VERSION}/62b9118254ebf`, //查询商品列表-基础
  post62b981f24a040: `/${API_VERSION}/62b981f24a040`, //查询购物车列表-基础
  post62c3b236b9e99: `/${API_VERSION}/62c3b236b9e99`, //查询商品分类-基础
  post5c78c4772da97: `/${API_VERSION}/5c78c4772da97`, //获取会员详细信息
  post62b91c846995e: `/${API_VERSION}/62b91c846995e`, //查询商品详情-基础
  post62cf8f1f0370b: `/${API_VERSION}/62cf8f1f0370b`, //查询购物车数量
  post62b996b0120bf: `/${API_VERSION}/62b996b0120bf`, //添加购物车-基础
  post5d63befcb25d9: `/${API_VERSION}/5d63befcb25d9`, //获取指定的文章单页信息
  post63a17eba97248: `/${API_VERSION}/63a17eba97248`, //查询文章列表
  post60e561cd51d26: `/${API_VERSION}/60e561cd51d26`, //获取网站基本信息
  post5df9dbfdc5252: `/${API_VERSION}/5df9dbfdc5252`, //获取积分商品订单下单信息
  post62c803a711123: `/${API_VERSION}/62c803a711123`, //统一下单
  post6536185d5da32: `/${API_VERSION}/6536185d5da32`, //查询会员等级
  post5cadc769e4f16: `/${API_VERSION}/5cadc769e4f16`, //获得单条收货地址
  post62d51684b3a65: `/${API_VERSION}/62d51684b3a65`, //新增｜编辑收货地址
  post62c677e63449e: `/${API_VERSION}/62c677e63449e`, //查询会员地址
  post62d28c0eccdbf: `/${API_VERSION}/62d28c0eccdbf`, //删除收货地址
  post62b920e552872: `/${API_VERSION}/62b920e552872`, //查询订单列表-基础
  post6527c4de3fc5a: `/${API_VERSION}/6527c4de3fc5a`, //待归还已完成列表
  post62b9285cb2e0d: `/${API_VERSION}/62b9285cb2e0d`, //取消订单-基础
  post62d22f3433424: `/${API_VERSION}/62d22f3433424`, //删除订单
  post6527c6533f22f: `/${API_VERSION}/6527c6533f22f`, //申请归还
  post5cc45422e5c87: `/${API_VERSION}/5cc45422e5c87`, //金额流水明细
  post6528d9229aaf8: `/${API_VERSION}/6528d9229aaf8`, //查询用户押金缴纳
  post62d236aca4ef6: `/${API_VERSION}/62d236aca4ef6`, //订单评价
  post6528d7fa6bab9: `/${API_VERSION}/6528d7fa6bab9`, //押金缴纳提交
  post63904efcaa202: `/${API_VERSION}/63904efcaa202`, //线下支付配置
  post62b91a70a697e: `/${API_VERSION}/62b91a70a697e`, //查询文章详情-基础
  post5cc3f28296cf0: `/${API_VERSION}/5cc3f28296cf0`, //提交意见反馈
  post5c78dca45ebc1: `/${API_VERSION}/5c78dca45ebc1`, //登录注册-验证码登录

  post6539c1ab67bd8: `/${API_VERSION}/6539c1ab67bd8`, //取消归还
  post6539c563debf7: `/${API_VERSION}/6539c563debf7`, //删除
  // 微信登录相关
  post5d7660a421e69: `/${API_VERSION}/5d7660a421e69`,
  post5d7757d28d076: `/${API_VERSION}/5d7757d28d076`,
  post653878ca3ef42: `/${API_VERSION}/653878ca3ef42`,
  post62c393b950315: `/${API_VERSION}/62c393b950315`,
  post62ba581c43bf9: `/${API_VERSION}/62ba581c43bf9`,
  post6527a4d87f7f0: `/${API_VERSION}/6527a4d87f7f0`,
  post6368d2de26ca9: `/${API_VERSION}/6368d2de26ca9`,
  post6538cb148e024: `/${API_VERSION}/6538cb148e024`,
  post6538cdeacb19d: `/${API_VERSION}/6538cdeacb19d`,
  post62e335233b477: `/${API_VERSION}/62e335233b477`, //支付
  post62b9854aa2c4e: `/${API_VERSION}/62b9854aa2c4e`, //改变数量
  post62cf8cc5678f0: `/${API_VERSION}/62cf8cc5678f0`, //改变数量
  post63888534a0764: `/${API_VERSION}/63888534a0764`, //改变数量
}
const pageFiles = require.context('../../pages/', true, /\api.js$/);
const pageApis = pageFiles.keys().reduce((modules, modulePath) => {
  const value = pageFiles(modulePath);
  if ((typeof value == 'object') && value.default) {
    Object.assign(modules, value.default);
  }
  return modules;
}, publicApi);
const modulesFiles = require.context('../../components/', true, /\api.js$/);
const modules = modulesFiles.keys().reduce((modules, modulePath) => {
  const value = modulesFiles(modulePath);
  if ((typeof value == 'object') && value.default) {
    Object.assign(modules, value.default);
  }
  return modules;
}, pageApis);

export default modules;
/**
 * 如果是第一套代码,删掉下面的对象即可
 * 如果不是第一套代码,导出下面的对象即可
 * 如果哪一套的代码都有,下面的对象合并到上面的对象即可
 * */
const del = {}